import * as React from 'react';
import { Route, IndexRoute } from 'react-router';
import { App } from './components/App';
import { HomeIndex } from './components/home/HomeIndex';
import { AboutIndex } from './components/about/AboutIndex';
import { CourseIndex } from './components/course/CourseIndex';

export const RootRoutes = (
  <Route path="/" component={App}>
    <IndexRoute component={HomeIndex} />
    <Route path="courses" component={CourseIndex} />
    <Route path="about" component={AboutIndex} />
  </Route>
);
